<template>
    <el-row class="search-list-item" type="flex" align="middle">
        <el-col class="search-list-item-1" :span="12">
            <el-row type="flex" justify="space-around">
                <el-col :span="4">
                    <span v-if="monitorData && monitorData.length > 0" class="elevator-no-a">{{monitorData[0].elevatorNo}}</span>
                </el-col>
                <el-col :span="4">
                    <span v-if="monitorData && monitorData.length > 1" class="elevator-no-a">{{monitorData[1].elevatorNo}}</span>
                </el-col>
                <el-col :span="4">
                    <span v-if="monitorData && monitorData.length > 2" class="elevator-no-a">{{monitorData[2].elevatorNo}}</span>
                </el-col>
                <el-col :span="4">
                    <span v-if="monitorData && monitorData.length > 3" class="elevator-no-a">{{monitorData[3].elevatorNo}}</span>
                </el-col>
                <el-col :span="4">
                    <span v-if="monitorData && monitorData.length > 4" class="elevator-no-a">{{monitorData[4].elevatorNo}}</span>
                </el-col>
            </el-row>
        </el-col>
        <el-col class="search-list-item-2" :span="12">
            <el-row type="flex" justify="space-around">
                <el-col :span="4">
                    <span v-if="monitorData && monitorData.length > 5" class="elevator-no-d">{{monitorData[5].elevatorNo}}</span>
                </el-col>
                <el-col :span="4">
                    <span v-if="monitorData && monitorData.length > 6" class="elevator-no-d">{{monitorData[6].elevatorNo}}</span>
                </el-col>
                <el-col :span="4">
                    <span v-if="monitorData && monitorData.length > 7" class="elevator-no-d">{{monitorData[7].elevatorNo}}</span>
                </el-col>
                <el-col :span="4">
                    <span v-if="monitorData && monitorData.length > 8" class="elevator-no-d">{{monitorData[8].elevatorNo}}</span>
                </el-col>
                <el-col :span="4">
                    <span v-if="monitorData && monitorData.length > 9" class="elevator-no-d">{{monitorData[9].elevatorNo}}</span>
                </el-col>
            </el-row>
        </el-col>
    </el-row>
</template>

<script>

export default {
    name: 'SearchListItem',
    components:{
    },
    props: {
        selectItem: {
            type:String
        },

        monitorData: {
            type: Array,
        }
    },
    data() {
      
        return {
            elevatorNo:"02",
        };
    },
    methods: {
      handleSelectionChange: function() {

      },
    },
    mounted() {
      
    },
    watch: {
    }
}
</script>

<style lang="scss" scoped>
.search-list-item {
    height: 60px;
    .search-list-item-1 {
        width: 100%;
        height: 40px;
        margin-right: 10px;
    }
    .search-list-item-2 {
        width: 100%;
        height: 40px;
        margin-left: 10px;
    }

    .elevator-no-a {
        display: block;
        width: 40px;
        height: 40px;
        line-height: 40px;
        font-family: lcdf;
        font-size: 16px;
        text-align: center;
        color: black;
        background: #94A1CD;
    }

    .elevator-no-d {
        display: block;
        width: 40px;
        height: 40px;
        line-height: 40px;
        font-family: lcdf;
        text-align: center;
        font-size: 16px;
        color: lightgray;
        background: linear-gradient(to top, #2B2F47 , #667293);
    }
}


</style>